<template>
    <view>
      <u-cell-group :customStyle="{backgroundColor: '#fff'}">
          <u-cell :isLink="isLink" :url="url">
          	<view
          	    slot="title"
          	    class="u-slot-title"
          	>
          		<u-avatar :src="joinDomain(avatar)"></u-avatar>
                  <text class="username">{{name}}</text>
          	</view>
          </u-cell>
      </u-cell-group>
    </view>
</template>

<script>
    export default {
        props: {
            avatar: {
                type: String
            },
            name: {
                type: String
            },
            url: String,
            isLink: {
              type: Boolean,
              default: false
            }
        }
    }
</script>

<style lang="scss" scoped>
    .u-slot-title{
        display: flex;
        align-items: center;
        .username{
            margin-left: 10rpx;
        }
    }
</style>